package edu.jmu.service.impl;

import edu.jmu.dao.AdminDao;
import edu.jmu.domain.Admin;
import edu.jmu.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminDao adminDao;


    @Override
    public Admin login(Admin admin) {
        return adminDao.findAdmin(admin);
    }
}
